package test;
import java.util.Map;
import java.util.HashMap;
public class PostNumberCon {
	public Map<String,PostNumber>map=new HashMap<String,PostNumber>();
	public PostNumberCon() {
		PostNumber pn;
		pn=new PostNumber("100000","北京","010");
		map.put(pn.getNumber(), pn);
		pn=new PostNumber("110000","沈阳","024");
		map.put(pn.getNumber(), pn);
		pn=new PostNumber("200000","上海","021");
		map.put(pn.getNumber(), pn);
		pn=new PostNumber("510000","广州","020");
		map.put(pn.getNumber(), pn);
		pn=new PostNumber("300000","天津","022");
		map.put(pn.getNumber(), pn);
		pn=new PostNumber("400000","重庆","023");
		map.put(pn.getNumber(), pn);
	}
	public PostNumber getOne(String number) {
		return map.get(number);
	}
}
